package cn.edu.scau.cmi.wusonglang.orm.entity;

import java.io.Serializable;

import javax.persistence.*;
@Entity
@Table(name = "Student")
public class Student implements Serializable{

    @Id
    @Column(name = "id")
    private String id;

    @Column(name = "name")
    private String name;
    
    @Column(name = "gender")
    private String gender;

    @ManyToOne(targetEntity = Tutor.class)
    @JoinColumn(name="tid", referencedColumnName="id")
    private Tutor tutor;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Tutor getTutor() {
		return tutor;
	}

	public void setTutor(Tutor tutor) {
		this.tutor = tutor;
	}
    
    
}
